//
// Created by lenovo on 2024/1/20.
//

#include "Calculator.h"



double Calculator::calc(const std::string& expression) const {
    Translator trs(expression , this->_identified_funcs , this->priority);
    Evaluable* e = trs.result();
    return e->getValue() ;
}

